import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
export class CreatePlateDto {
  @ApiProperty({ description: '板块名称', required: true })
  @IsNotEmpty({
    message: '板块名称不能为空',
  })
  plateName: string;

  @ApiProperty({ description: '块板描述', required: false })
  description: string;

  @ApiProperty({ description: '板块icon图标', required: false })
  iconURL: string;

  @ApiProperty({ description: '板块跳转路径', required: false })
  pathURL: string;

  @ApiProperty({ description: '板块的路由表', required: false })
  routingTable: string;
}
